package com.yuanzong.wuliu.controller.admin.business.customer;

import com.yuanzong.wuliu.common.vo.ApiResult;
import com.yuanzong.wuliu.controller.admin.business.customer.param.AdminBusinessCustomerBaodanPageParam;
import com.yuanzong.wuliu.service.admin.business.customer.AdminBusinessCustomerBaodanService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(tags = "管理端 - 客户报单")
@RequestMapping("/admin/business/customer/businessCustomerBaodan")
@Slf4j
public class AdminBusinessCustomerBaodanController {

    @Autowired
    private AdminBusinessCustomerBaodanService adminBusinessCustomerBaodanService;

    @ApiOperation("分页")
    @RequestMapping(value = "/page", method = {RequestMethod.POST})
    public ApiResult page(@RequestBody AdminBusinessCustomerBaodanPageParam param) throws Exception {
        ApiResult result = adminBusinessCustomerBaodanService.page(param);
        return result;
    }
}
